package io.jee.caisan.weixin;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.Import;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.scheduling.annotation.EnableAsync;

import io.jee.alaska.data.jpa.hibernate.SimpleAlaskaRepository;
import io.jee.alaska.firewall.spring.data.redis.FirewallSpringRedisConfig;

@SpringBootApplication
@EnableEurekaClient
@EnableJpaRepositories(repositoryBaseClass=SimpleAlaskaRepository.class)
@EnableFeignClients(basePackages={"io.jee.caisan.member.client.service"})
@Import({FirewallSpringRedisConfig.class})
//@EnableRedisHttpSession
@EnableAutoConfiguration(exclude = {SecurityAutoConfiguration.class})
@EnableAsync
public class CaisanWeixinServiceApplication {

	public static void main(String[] args) {
		SpringApplication.run(CaisanWeixinServiceApplication.class, args);
	}
}
